#ifndef REGISTERS_H
#define REGISTERS_H

#include <stdio.h>
#include "type.h"
#include "io.h"

#define ZERO  0
#define FLAG  1
#define RA    2
#define RV    3
#define G0    4
#define G1    5
#define G2    6
#define G3    7
#define G4    8
#define G5    9
#define G6   10
#define T0   11
#define T1   12
#define T2   13
#define T3   14
#define SP   15

word get_register (word reg);
void set_register (word reg, word data);
int lookup_register (char *name);

#endif

